add_definitions(-DBOOST_ALL_NO_LIB)
add_definitions(-DBOOST_NO_STD_WSTRING)

set(BoostRoot ./boost_1_43_0 )
include_directories(${BoostRoot})

set (Boost_FileSystem_src
	${BoostRoot}/libs/filesystem/src/operations.cpp 
	${BoostRoot}/libs/filesystem/src/path.cpp 
	${BoostRoot}/libs/filesystem/src/portability.cpp 
	${BoostRoot}/libs/filesystem/src/utf8_codecvt_facet.cpp
	 )
set (Boost_System_src
	${BoostRoot}/libs/system/src/error_code.cpp 
	 )	 

set (Boost_Serialization_src
	${BoostRoot}/libs/serialization/src/basic_archive.cpp
	${BoostRoot}/libs/serialization/src/basic_iarchive.cpp
	${BoostRoot}/libs/serialization/src/basic_iserializer.cpp
	${BoostRoot}/libs/serialization/src/basic_oarchive.cpp
	${BoostRoot}/libs/serialization/src/basic_oserializer.cpp
	${BoostRoot}/libs/serialization/src/basic_pointer_iserializer.cpp
	${BoostRoot}/libs/serialization/src/basic_pointer_oserializer.cpp
	${BoostRoot}/libs/serialization/src/basic_serializer_map.cpp
	${BoostRoot}/libs/serialization/src/basic_text_iprimitive.cpp
	${BoostRoot}/libs/serialization/src/basic_text_oprimitive.cpp
	${BoostRoot}/libs/serialization/src/basic_xml_archive.cpp
	${BoostRoot}/libs/serialization/src/binary_iarchive.cpp
	${BoostRoot}/libs/serialization/src/binary_oarchive.cpp
	${BoostRoot}/libs/serialization/src/extended_type_info.cpp
	${BoostRoot}/libs/serialization/src/extended_type_info_typeid.cpp
	${BoostRoot}/libs/serialization/src/extended_type_info_no_rtti.cpp
	${BoostRoot}/libs/serialization/src/polymorphic_iarchive.cpp
	${BoostRoot}/libs/serialization/src/polymorphic_oarchive.cpp
	${BoostRoot}/libs/serialization/src/stl_port.cpp
	${BoostRoot}/libs/serialization/src/text_iarchive.cpp
	${BoostRoot}/libs/serialization/src/text_oarchive.cpp
	${BoostRoot}/libs/serialization/src/void_cast.cpp
    ${BoostRoot}/libs/serialization/src/archive_exception.cpp
	${BoostRoot}/libs/serialization/src/xml_grammar.cpp
	${BoostRoot}/libs/serialization/src/xml_iarchive.cpp
	${BoostRoot}/libs/serialization/src/xml_oarchive.cpp
    ${BoostRoot}/libs/serialization/src/xml_archive_exception.cpp
    ${BoostRoot}/libs/serialization/src/shared_ptr_helper.cpp
	
#    ${BoostRoot}/libs/serialization/src/basic_text_wiprimitive.cpp
#    ${BoostRoot}/libs/serialization/src/basic_text_woprimitive.cpp
#    ${BoostRoot}/libs/serialization/src/text_wiarchive.cpp
#    ${BoostRoot}/libs/serialization/src/text_woarchive.cpp
#    ${BoostRoot}/libs/serialization/src/utf8_codecvt_facet.cpp
#    ${BoostRoot}/libs/serialization/src/xml_wgrammar.cpp
#    ${BoostRoot}/libs/serialization/src/xml_wiarchive.cpp
#    ${BoostRoot}/libs/serialization/src/xml_woarchive.cpp
#    ${BoostRoot}/libs/serialization/src/codecvt_null.cpp
	 )
if (WIN32)
	add_definitions(-DBOOST_THREAD_BUILD_DLL)
	set (Boost_Thread_src
		${BoostRoot}/libs/thread/src/win32/thread.cpp 
#		${BoostRoot}/libs/thread/src/win32/exceptions.cpp
		${BoostRoot}/libs/thread/src/win32/tss_dll.cpp
		${BoostRoot}/libs/thread/src/win32/tss_pe.cpp
	 )
else (WIN32)
	set (Boost_Thread_src
		${BoostRoot}/libs/thread/src/pthread/thread.cpp
#		${BoostRoot}/libs/thread/src/pthread/exceptions.cpp
		${BoostRoot}/libs/thread/src/pthread/once.cpp
	 )
endif (WIN32)


set (Boost_Regex_src
	${BoostRoot}/libs/regex/src/c_regex_traits.cpp
	${BoostRoot}/libs/regex/src/cpp_regex_traits.cpp
	${BoostRoot}/libs/regex/src/cregex.cpp
	${BoostRoot}/libs/regex/src/fileiter.cpp
	${BoostRoot}/libs/regex/src/icu.cpp
	${BoostRoot}/libs/regex/src/instances.cpp
	${BoostRoot}/libs/regex/src/posix_api.cpp
	${BoostRoot}/libs/regex/src/regex.cpp
	${BoostRoot}/libs/regex/src/regex_debug.cpp
	${BoostRoot}/libs/regex/src/regex_raw_buffer.cpp
	${BoostRoot}/libs/regex/src/regex_traits_defaults.cpp
	${BoostRoot}/libs/regex/src/static_mutex.cpp
	${BoostRoot}/libs/regex/src/w32_regex_traits.cpp
	${BoostRoot}/libs/regex/src/wc_regex_traits.cpp
	${BoostRoot}/libs/regex/src/wide_posix_api.cpp
	${BoostRoot}/libs/regex/src/winstances.cpp 
	${BoostRoot}/libs/regex/src/usinstances.cpp 
	)

add_library ( boostLibs 
	${Boost_FileSystem_src}
	${Boost_System_src} 
	${Boost_Serialization_src}
	${Boost_Thread_src}
	${Boost_Regex_src}
	)
